package com.project.xy.controller;

import com.project.xy.entity.DConfigFileKind;
import com.project.xy.service.DConfigFileKindService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/dConfig")
public class DConfigFileKindController {

    @Autowired
    private DConfigFileKindService service;

    @GetMapping("/selectDconfigAll.action")
    @ResponseBody
    public List<DConfigFileKind> selectDconfigAll(Integer level){
        List<DConfigFileKind> list = service.selectByLevel(level);
        return list;
    }

}
